import java.util.*;

class MyThread extends Thread {
	private String name;
	
	MyThread(String name) {
		this.name = name;	
	}
	
	public void run() {
		for (int i = 0; i < 6; i++) {
			System.out.println(name + ": " + i);
			try {
				Thread.sleep(200);
				
			} catch (InterruptedException e) {
				
			}
			
		}
	}	
}

class Main {
	public static void main(String[] args) {
		//System.out.println("hello");
		MyThread t1 = new MyThread("t1");
		MyThread t2 = new MyThread("t2");
		MyThread t3 = new MyThread("t3");
		t1.start();
		t2.start();
		t3.start();
		
	}
}
